package com.smart.campus.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smart.campus.dto.AttendanceStatistics;
import com.smart.campus.dto.TeacherAttendance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @BelongsProject: smart-campus
 * @BelongsPackage: com.smart.campus.dao
 * @Author: JinBao shan
 * @date 2024/10/7 20:08
 * @Description: TODO
 * @Version: 1.0
 */

@Mapper
public interface TeacherAttendanceMapper extends BaseMapper<TeacherAttendance> {
    IPage<TeacherAttendance> findTeacherAttendancePagination(Page<TeacherAttendance> page,@Param(value = "attendance") TeacherAttendance attendance);

    List<Map<String, Object>> queryAttendanceStatistics(@Param(value = "attendanceStatistics") AttendanceStatistics attendanceStatistics);
}
